import request from '@/utils/request'

export function getStudentListApi(data) {
    return request({
        method: 'POST',
        url: '/student/list',
        data
    })
}


export function getAllClassInfoApi() {
    return request({
        method: 'GET',
        url: '/student/getAllClassInfo'
    })  

}


export function addStudentApi(data) {
    return request({
        method: 'POST',
        url: '/student/add',
        data
    })
}


export function editStudentApi(data) {
    return request({
        method: 'POST',
        url: '/student/edit',
        data
    })
}


export function deleteStudentApi(stuId) {
    return request({
        method: 'DELETE',
        url: `/student/del?stuId=${stuId}`,
    })
}


export function moveByClassIdApi(data) {
    return request({
        method: 'POST',
        url: '/student/move/byClassId',
        data
    })
}


export function listInClassApi(classId) {
    return request({
        method: 'GET',
        url: `/student/list/studentInClass?classId=${classId}`
    })
}

